//
//  AddMiddleManViewController.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/4/17.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//  添加经纪人账号

#import "AddMiddleManViewController.h"
#import "SelectStoreViewController.h"
#import "TraderAddStoreViewController.h"
#import "UIView+circular.h"


@interface AddMiddleManViewController ()
@property (weak, nonatomic) IBOutlet UIView *backView1;
@property (weak, nonatomic) IBOutlet UIView *backView2;
@property (weak, nonatomic) IBOutlet UIView *backView3;
@property (weak, nonatomic) IBOutlet UIView *backView4;
@property (weak, nonatomic) IBOutlet UIView *backView5;
//所属的公司
@property (weak, nonatomic) IBOutlet UILabel *companyName;
//经纪人姓名
@property (weak, nonatomic) IBOutlet UILabel *middleManName;
//经纪人手机号
@property (weak, nonatomic) IBOutlet UILabel *phone;
//设置的登录密码
@property (weak, nonatomic) IBOutlet UILabel *pwd1;
//再次输入的登录密码
@property (weak, nonatomic) IBOutlet UILabel *pwd2;

- (IBAction)tapSaveBtn;

- (IBAction)TapSelectStroe;

- (IBAction)tapAddStore;
@end

@implementation AddMiddleManViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.titleView  setMianTitle:@"添加经纪人账号"];
    [self toCircularView];
    
}

/**
 *  变成圆角的view
 */
-(void)toCircularView
{
    [self.backView1 viewToCircular];
    [self.backView2 viewToCircular];
    [self.backView3 viewToCircular];
    [self.backView4 viewToCircular];
    [self.backView5 viewToCircular];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/**
 *  保存信息
 */
- (IBAction)tapSaveBtn {
}
/**
 *  选择门店
 */
- (IBAction)TapSelectStroe {
    
    SelectStoreViewController *selectVC = [[SelectStoreViewController alloc]initWithNibName:@"SelectStoreViewController" bundle:nil];
    selectVC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:selectVC animated:YES]
    ;
}

//添加门店
- (IBAction)tapAddStore {
    TraderAddStoreViewController *traderAddStoreVC = [[TraderAddStoreViewController alloc]initWithNibName:@"TraderAddStoreViewController" bundle:nil];
    traderAddStoreVC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:traderAddStoreVC animated:YES];
}
@end
